﻿@model IEnumerable<PiscoSourDominio.Orden>
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    WebGrid grid = new WebGrid(Model); 
}

<div class="ContentAdmin">

<h2>Lista PreOrden Platos</h2>
<br />

<h3><a href="@Url.Action("Register", "Orden")" >Nuevo</a></h3>

@grid.GetHtml(
    columns: grid.Columns(

                grid.Column(columnName: "intOrden", header: "ID", style: "text-align-center"),
                
                grid.Column(columnName: "intCantidad", header: "Cantidad",style: "text-align-center"),

                grid.Column(columnName: "vchObservacion", header: "Observacion", style: "text-align-center"),

                grid.Column(columnName: "intCodPlato", header: "Plato", style: "text-align-center"),

                grid.Column(columnName: "intReserva", header: "Reserva", style: "text-align-center"), 

                grid.Column(header: "Acciones", format: (item) => 
                 new HtmlString(
                               Html.ActionLink("Edit", "Edit", new { id = item.intOrden }).ToString() + " " +
                                   Html.ActionLink("Delete", "Delete", new { id = item.intOrden }).ToString()  
                 ) 
            ) 

 ),
 
   tableStyle: "webgrid",
   headerStyle: "webgrid-header",
   footerStyle: "webgrid-footer",
   alternatingRowStyle: "webgrid-alternating-row",
   selectedRowStyle: "webgrid-selected-row",
   rowStyle: "webgrid-row-style")


<br />

<a href="@Url.Action("Home", "Index")" >Regresar</a>
